package cn.lynu.study.javafx;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class JavaFxHello extends Application{

	public static void main(String[] args) {
		launch();
	}

	@Override
	public void start(Stage primaryStage) throws Exception {
		Parent root = FXMLLoader.load(getClass().getResource("main.fxml")); 
		primaryStage.setScene(new Scene(root));
		primaryStage.setTitle("JavaFX Hello World!");
		primaryStage.show();
		
	}

}
